package com.fcscs.cservice.domain;

import com.fcscs.core.domain.HistoricalEntity;
import com.fcscs.cservice.common.CServiceCommonEnums.PmsType;
import com.fcscs.cservice.common.CServiceCommonEnums.Type;

public class ContactInfo extends HistoricalEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1550113428825510903L;

	private Type type;
	private String phone1;
	private String phone2;
	private String address;
	private String city;
	private String town;
	private Long stateId;
	private Long countryId;
	private String zipPostal;
	private PmsType pmsType;

	public String getType() {
		return type == null? null : type.toString();
	}

	public void setType(String type) {
		this.type = type == null? null : Type.valueOf(type);
	}

	public Type getTypeEnum() {
		return type;
	}

	public void setTypeEnum(Type type) {
		this.type = type;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getTown() {
		return town;
	}

	public void setTown(String town) {
		this.town = town;
	}

	public Long getStateId() {
		return stateId;
	}

	public void setStateId(Long stateId) {
		this.stateId = stateId;
	}

	public Long getCountryId() {
		return countryId;
	}

	public void setCountryId(Long countryId) {
		this.countryId = countryId;
	}

	public String getZipPostal() {
		return zipPostal;
	}

	public void setZipPostal(String zipPostal) {
		this.zipPostal = zipPostal;
	}

	@Override
	public DBLoc getDBLoc() {
		// TODO Auto-generated method stub
		return DBLoc.GUEST;
	}

	public void setPhone1(String phone1) {
		this.phone1 = phone1;
	}

	public String getPhone1() {
		return phone1;
	}

	public void setPhone2(String phone2) {
		this.phone2 = phone2;
	}

	public String getPhone2() {
		return phone2;
	}

	public String getPmsType() {
		return pmsType == null? null : pmsType.toString();
	}

	public void setPmsType(String pmsType) {
		this.pmsType = pmsType == null? null : PmsType.valueOf(pmsType);
	}

	public PmsType getPmsTypeEnum() {
		return pmsType;
	}

	public void setPmsTypeEnum(PmsType pmsType) {
		this.pmsType = pmsType;
	}
}
